package dongze.com.ckdj.persistence.dao;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by fanqwz on 2017/7/31.
 */

@Entity
public class Image {
    @Id
    private Long id;
    private String filePath;
    private String serverPath;
    @Convert(converter = StateConverter.class, columnType = Integer.class)
    private State state = State.Undefined;
    public State getState() {
        return this.state;
    }
    public void setState(State state) {
        this.state = state;
    }
    public String getServerPath() {
        return this.serverPath;
    }
    public void setServerPath(String serverPath) {
        this.serverPath = serverPath;
    }
    public String getFilePath() {
        return this.filePath;
    }
    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    @Generated(hash = 1692080426)
    public Image(Long id, String filePath, String serverPath, State state) {
        this.id = id;
        this.filePath = filePath;
        this.serverPath = serverPath;
        this.state = state;
    }
    @Generated(hash = 1590301345)
    public Image() {
    }
}
